package com.atguigu.gulimall.product.exception;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

/**
 * @Author: biubiu0002
 * @Date: 2021-09-08 0:43
 **/

/**
 * 集中处理所有异常
 */
@ControllerAdvice(basePackages = "com.atguigu.gulimall.product.controller")
public class GulimallExceptionControllerException {

    @ExceptionHandler(value = Exception.class)
    public void handleValidException(Exception e){

    }
}
